#include <string>
#include <iostream>
using std::cout;
using std::endl;
using std::string;

void test0(){
    string str1("hello");
    string str2("wangdao");
    cout << sizeof(string) << endl;
    cout << sizeof(str1) << endl;
    cout << sizeof(str2) << endl;
}

void test1(){
    string str1("helloworldaaaaa");
    string str2("helloworldaaaaaa");

    cout << "&str1:" << &str1 << endl;
    /* cout << &str1[0] << endl; */
    printf("%p\n",&str1[0]);
    cout << "&str2:" << &str2 << endl;
    printf("%p\n",&str2[0]);
}

int main(void){
    test1();
    return 0;
}
